import Vue from 'vue'
import Vuex from 'vuex'
import Cookies from 'js-cookie'
import userInfo from './userInfo'
import app from './app'

Vue.use(Vuex)

const store = new Vuex.Store({
    modules:{
        //userInfo: userInfo,
        app: app
    },
    getters:{
        //roles: state => state.userInfo.roles,
        //userName: state => state.userInfo.userName,
        //loginStatus: state => state.userInfo.loginStatus,
        //checkLogin: state => state.userInfo.checkLogin,
        sidebar: state => state.app.sidebar,
        tabs: state => state.app.tabs,
        menus:state =>state.app.menus,
        cacheList:state =>state.app.cacheList,
        theme:state =>state.app.theme,
        size:state =>state.app.size,
        app:state =>state.app
    }
})  
export default store